import request from '@/utils/request'

// 查询积分兑换列表
export function listIntergalexchange(query) {
  return request({
    url: '/user/intergalexchange/list',
    method: 'get',
    params: query
  })
}

// 查询积分兑换详细
export function getIntergalexchange(id) {
  return request({
    url: '/user/intergalexchange/' + id,
    method: 'get'
  })
}

// 新增积分兑换
export function addIntergalexchange(data) {
  return request({
    url: '/user/intergalexchange',
    method: 'post',
    data: data
  })
}

// 修改积分兑换
export function updateIntergalexchange(data) {
  return request({
    url: '/user/intergalexchange',
    method: 'put',
    data: data
  })
}

// 删除积分兑换
export function delIntergalexchange(id) {
  return request({
    url: '/user/intergalexchange/' + id,
    method: 'delete'
  })
}
